package com.jzg.sys.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author lzp
 * @since 2019-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SEC_USER")
public class SecUser extends Model<SecUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId("USER_ID")
    private String userId;

    /**
     * 用户账号
     */
    @TableField("USER_CODE")
    private String userCode;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    @TableField("USER_NAME")
    private String userName;

    @TableField("PHONE")
    private String phone;

    @TableField("ID_NUMBER")
    private String idNumber;

    @TableField("EMAIL")
    private String email;

    /**
     * 系统编码
     */
    @TableField("SYS_CODE")
    private String sysCode;

    /**
     * 系统名称
     */
    @TableField("SYS_NAME")
    private String sysName;

    /**
     * 排序码
     */
    @TableField("SORT_NO")
    private String sortNo;

    /**
     * 是否有效:0无效，1有效
     */
    @TableField("IS_VALID")
    private Boolean isValid;

    /**
     * 加密盐
     */
    @TableField("SALT")
    private String salt;


    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

}
